package com.qst.service.impl;

import com.qst.dao.ZulistMapper;
import com.qst.pojo.Zulist;
import com.qst.service.ZulistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service public class ZulistServiceImpl implements ZulistService {

	 @Autowired private ZulistMapper zulistMapper;

	 @Override public void insertzulist(Zulist zulist) {
		  zulistMapper.insertzulist(zulist);

	 }

	 @Override public List<Zulist> findZuList(Integer fangdongid) throws Exception {
		  List<Zulist> zulist = zulistMapper.findZuList(fangdongid);
		  return zulist;
	 }

	 @Override public List<Zulist> findAllZuList() throws Exception {
		  List<Zulist> zulist = zulistMapper.findAllZuList();
		  return zulist;
	 }

	 @Override public Zulist findZuListByHouseId(String house_id) {
		  Zulist zulist = zulistMapper.findZuListByHouseId(house_id);
		  return zulist;
	 }

	 @Override public void deletezulist(String house_id) {
		  zulistMapper.deletezulist(house_id);

	 }

	 @Override public List<Zulist> findzulistbyuid(Integer userlist_id) {
		  List<Zulist> zulist = zulistMapper.findzulistbyuid(userlist_id);
		  return zulist;
	 }

}
